import { createVNode, render } from 'vue'
import message from './tips.vue'

export function triggerMsg (opiton: Record<string, string>) {
  const instance = createVNode(message, opiton)
  const container = document.querySelector('.container') ??
   document.querySelector('body')
  console.log('--- click ---')
  render(instance, container as HTMLElement)
  setTimeout(() => {
    render(null, container as HTMLElement)
  }, 3000)
}
